package com.lai.note.model;

import java.time.LocalDateTime;

public class Note {

    //笔记id
    private String noteId;
    //笔记标题
    private String title;
    //笔记内容
    private String content;
    //创建时间
    private LocalDateTime createTime;

    //收藏状态
    private boolean collectStatus;

    public Note() {
    }

    public Note(String noteId, String title, String content, LocalDateTime createTime, boolean collectStatus) {
        this.noteId = noteId;
        this.title = title;
        this.content = content;
        this.createTime = createTime;
        this.collectStatus = collectStatus;
    }

    public String getNoteId() {
        return noteId;
    }

    public void setNoteId(String note_id) {
        this.noteId = note_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public boolean isCollectStatus() {
        return collectStatus;
    }

    public void setCollectStatus(boolean collectStatus) {
        this.collectStatus = collectStatus;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "Note{" +
                "noteId='" + noteId + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                ", collectStatus=" + collectStatus +
                '}';
    }
}
